package cn.jxau.fukin.util;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class CommonUtils {

	private static Properties pop = new Properties();
	
	static {
		try {
			pop.load(new FileReader(CommonUtils.class.getClassLoader()
					.getResource("common.properties").getPath()));
		} catch (IOException e) {
			e.printStackTrace();
			throw new RuntimeException(e);
		}
	}
	
	/**
	 * 得到配置文件中相应的值
	 * @param 在common.properties中等号左边的值
	 * @return 返回等号相应右边的值
	 */
	public static String getValueOfProprties(String key){
		return pop.getProperty(key);
	}
}
